const routers = [
  {
    path: '/resourceManagement',
    name: 'resourceManagement',
    // component: () => import('@/views/asset_management/resource_management/ManagementView.vue'),
    redirect: {
      name: 'resourceManagementList'
    },
    meta: {
      title: '资源管理',
      isTopLevel: true, // 是否为顶层页面
      // backName: 'index',
      isCanback: false, //控制是否可以显示返回
      defaultMeau: '/AssetManagement'
    },
    children: [
      {
        path: '/resourceManagement/list',
        name: 'resourceManagementList',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_list/ManagementView.vue'
          ),
        meta: {
          title: '资源管理',
          isTopLevel: true, // 是否为顶层页面
          // backName: 'index',
          isCanback: false, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/add',
        name: 'resourceAdd',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_save/ResourceSave.vue'
          ),
        meta: {
          title: '添加资源',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/edit/:id',
        name: 'resourceEdit',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_save/ResourceSave.vue'
          ),
        meta: {
          title: '编辑资源',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/update/:id',
        name: 'resourceUpdate',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_save/ResourceSave.vue'
          ),
        meta: {
          title: '更新资源',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/view/:id',
        name: 'resourceView',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_view/ResourceView.vue'
          ),
        meta: {
          title: '查看资源',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/vers/:id',
        name: 'resourceVers',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_version/resourceVers.vue'
          ),
        meta: {
          title: '查看版本',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      },
      {
        path: '/resourceManagement/relations/:id',
        name: 'resourceRelations',
        component: () =>
          import(
            '@/views/asset_management/resource_management/subPages/resource_relations/resourceRelations.vue'
          ),
        meta: {
          title: '查看关联',
          isTopLevel: false, // 是否为顶层页面
          backName: 'resourceManagement',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceManagement'
        }
      }
    ]
  },

  {
    path: '/resourceProject',
    name: 'resourceProject',
    // component: () => import('@/views/asset_management/resource_management/ManagementView.vue'),
    redirect: {
      name: 'projectIndex'
    },
    meta: {
      title: '资源项目',
      isTopLevel: true, // 是否为顶层页面
      // backName: 'index',
      isCanback: false, //控制是否可以显示返回
      defaultMeau: '/AssetManagement'
    },
    children: [
      {
        path: '/resourceProject/projectIndex',
        name: 'projectIndex',
        component: () => import('@/views/asset_management/resource-project/ProjectIndex.vue'),
        meta: {
          title: '资源项目',
          isTopLevel: true, // 是否为顶层页面
          // backName: 'index',
          isCanback: false, //控制是否可以显示返回
          activeMenu: '/resourceProject'
        }
      },
      {
        path: '/resourceProject/CheckDetail/:id',
        name: 'CheckDetail',
        component: () => import('@/views/asset_management/resource-project/CheckDetail.vue'),
        meta: {
          title: '查看详情',
          isTopLevel: false,
          backName: 'projectIndex',
          isCanback: true,
          activeMenu: '/resourceProject'
        }
      },
      {
        path: '/resourceProject/edit/:id',
        name: 'ProjectEdit',
        component: () =>
          import('@/views/asset_management/resource-project/ProjectAdd/ProjectAdd.vue'),
        meta: {
          title: '资产项目编辑',
          isTopLevel: false, // 是否为顶层页面
          backName: 'projectIndex',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceProject'
        }
      },
      {
        path: '/resourceProject/add',
        name: 'ProjectAdd',
        component: () =>
          import('@/views/asset_management/resource-project/ProjectAdd/ProjectAdd.vue'),
        meta: {
          title: '添加项目',
          isTopLevel: false, // 是否为顶层页面
          backName: 'projectIndex',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceProject'
        }
      },
      {
        path: '/resourceProject/ResourceResrelation/:id',
        name: 'ResourceResrelation',
        component: () =>
            import(
                '@/views/asset_management/resource-project/ResourceResrelation.vue'
                ),
        meta: {
          title: '关联资源',
          isTopLevel: false, // 是否为顶层页面
          backName: 'projectIndex',
          isCanback: true, //控制是否可以显示返回
          activeMenu: '/resourceProject'
        }
      }
    ]
  }
];

export default routers;
